import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/font/iconfont.css'
import axios from 'axios'
import VueAxios from 'vue-axios'
import Router from 'vue-router' 
const routerPush = Router.prototype.push 
// axios.defaults.withCredentials=true
// Vue.prototype.$axios = axios
Router.prototype.push = function push(location) {   
return routerPush.call(this, location).catch(error=> error)
}
Vue.use(VueAxios, axios)
Vue.config.productionTip = false
Vue.use(ElementUI);
new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
